package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.product.entity.vo.AttrGroupRelationVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author huguangwei
 * @email huguangwei@gmail.com
 * @date 2022-10-07 20:12:13
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    @Transactional
    void deleteBatchRelation(AttrGroupRelationVo[] vos) throws RuntimeException;

    /**
     * 保存属性分组关联关系
     *
     * @param vos
     */
    @Transactional
    void addRelation(List<AttrGroupRelationVo> vos) throws RuntimeException;
}

